home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9618 < prev    next >
Encoding:
Text File  |  1996-08-05  |  773 b   |  33 lines

  1. Path: hobbes.cc.uga.edu!pollux!greear
  2. From: greear@pollux.cs.uga.edu (Ben Greear)
  3. Newsgroups: comp.lang.c
  4. Subject: bitfields, how big can their elements be?
  5. Date: 12 Mar 1996 01:51:07 GMT
  6. Organization: University of Georgia, Athens
  7. Message-ID: <4i2lab$ili@hobbes.cc.uga.edu>
  8. NNTP-Posting-Host: pollux.cs.uga.edu
  9.  
  10.  
  11. Ok, i have a question on bitfields....  How big can their members be,
  12. for example, where does this one become illegal?
  13.  
  14.  
  15. struct bitfield {
  16.    little:   8;
  17.    med:      16;
  18.    large:    32;
  19.    huge:     64;
  20.    realy_realy_huge:  128;
  21.    one_k:    1024;
  22. }; 
  23.  
  24.  
  25. thanks, 
  26.  
  27. Ben Greear                 |  "More weight."  -- The Crucible
  28. greear@pollux.cs.uga.edu   |  "Son, you got a panty on yer head."
  29. Junior at UGA                             --Raising Arizona
  30.  
  31.  
  32.  
  33.